package com.cke.yang.storage.api.dto.response;

import org.springframework.core.io.Resource;

/**
 * 文件下载结果包装类
 *
 * @author yuyang
 */
public class FileDownloadResponse {
    private final Resource resource;
    private final String fileName;
    private final String contentType;
    private final long fileSize;

    public FileDownloadResponse(Resource resource, String fileName, String contentType, long fileSize) {
        this.resource = resource;
        this.fileName = fileName;
        this.contentType = contentType;
        this.fileSize = fileSize;
    }

    public Resource getResource() {
        return resource;
    }

    public String getFileName() {
        return fileName;
    }

    public String getContentType() {
        return contentType;
    }

    public long getFileSize() {
        return fileSize;
    }
}

